<template>
  <div>
    <router-link to="/">Home</router-link>
    <router-link to="/about">About</router-link>
    <button @click="handler">编程式路由 </button>
    <router-link to="/none">没有界面</router-link>
    <RouterView />
  </div>
</template>
<script setup>
import router from './router';

const handler = () => {
  console.log('handler')
  router.push({
    path: '/about',
  })
}


</script>